#define _CRT_SECURE_NO_WARNINGS
#include"SList.h"


int main()
{

	ListNode* node1 = (ListNode*)malloc(sizeof(ListNode));
	ListNode* node2 = (ListNode*)malloc(sizeof(ListNode));
	ListNode* node3 = (ListNode*)malloc(sizeof(ListNode));
	ListNode* node4 = (ListNode*)malloc(sizeof(ListNode));
	ListNode* node5 = (ListNode*)malloc(sizeof(ListNode));
	ListNode* node6 = (ListNode*)malloc(sizeof(ListNode));
	ListNode* node7 = (ListNode*)malloc(sizeof(ListNode));


	ListNode* node8 = (ListNode*)malloc(sizeof(ListNode));
	ListNode* node9 = (ListNode*)malloc(sizeof(ListNode));
	ListNode* node10 = (ListNode*)malloc(sizeof(ListNode));
	ListNode* node11 = (ListNode*)malloc(sizeof(ListNode));
	
	node2->val = 2;
	node3->val = 6;
	node4->val = 3;
	node5->val = 4;
	node6->val = 5;
	node7->val = 6;

	node8->val = 4;
	node9->val = 0;
	node10->val = 7;
	node11->val = 3;
	
	node1->next = node2;
	node2->next = node3;
	node3->next = node4;
	node4->next = node5;
	node5->next = node6;
	node6->next = node7;
	node7->next = NULL;

	node8->next = node9;
	node9->next = node10;
	node10->next = node11;
	node11->next = node5;
	ListNode* plist = node1;

	ListNode* newhead=removeElements(plist, 6);
	ListNode* intersectnode=getIntersectionNode(node1,node8);
}